package com.mapforge.gui.map;

import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JScrollPane;

import com.mapforge.gui.EditHistoryPopup;
import com.mapforge.gui.TileLayerTransferableContainer;

/**
 * This dockable Toolbar displays a list of panels which represent tile layers.
 * 
 * @author Will Morrison
 * 
 */
public class TileLayerBox extends Box {
	/**
	 * Default serial version ID, here to remove warnings
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	private TileLayerTransferableContainer tileLayerList;

	/**
	 * 
	 */
	private EditHistoryPopup editHistoryPopup;

	/**
	 * 
	 */
	public TileLayerBox() {
		super(BoxLayout.Y_AXIS);
		tileLayerList = new TileLayerTransferableContainer();
		editHistoryPopup = new EditHistoryPopup();
		layoutGUI();
	}

	private void layoutGUI() {
		add(new JScrollPane(tileLayerList));
	}

	/** */
	public void displayEditHistoryPopup() {

	}

	/** */
	public EditHistoryPopup getEditHistoryPopup() {
		return editHistoryPopup;
	}

	/** */
	public TileLayerTransferableContainer getTileLayerList() {
		return tileLayerList;
	}
}
